import com.google.gson.Gson;
import com.google.gson.annotations.Expose;
import org.dreamwork.gson.GsonHelper;
import org.dreamwork.jasmine2.restful.RestfulAPIManager;
import org.dreamwork.misc.XMLUtil;
import org.w3c.dom.Document;

import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.transform.dom.DOMSource;
import javax.xml.transform.stream.StreamSource;
import javax.xml.validation.SchemaFactory;
import javax.xml.validation.Validator;
import java.io.File;
import java.io.InputStream;
import java.lang.reflect.Method;
import java.net.URL;

/**
 * Created by IntelliJ IDEA.
 * User: seth.yang
 * Date: 2014/12/7
 * Time: 0:58
 */
public class XSDTest {
    public static void main (String[] args) throws Exception {
/*
        Class<RTest> c = RTest.class;
        Method m = c.getDeclaredMethod ("m", Integer.class);
        System.out.println (m);
*/

        AATest a = new AATest ();
        a.setA ("a");
        a.setB ("b");
        a.setC ("c");
        System.out.println (GsonHelper.getGson (true).toJson (a));

        new RTest ().test (new I () {
            @Override
            public void a (int a) {

            }

            @Override
            public void b (String s) {

            }
        });
    }
}

class RTest {
    public void m (int i) {
        System.out.println (i);
    }

    public void test (I i) {
        //
    }
}

class AATest {
    @Expose
    private String a, b, c;
    private String d = "d";

    public String getA () {
        return a;
    }

    public void setA (String a) {
        this.a = a;
    }

    public String getB () {
        return b;
    }

    public void setB (String b) {
        this.b = b;
    }

    public String getC () {
        return c;
    }

    public void setC (String c) {
        this.c = c;
    }
}

interface I {
    void a (int a);
    void b (String s);
}